/*
 *  msw/graphic2D.cpp
 *  mini
 *
 *  Created by jin on 1/1/11.
 *  Copyright 2011 cs. All rights reserved.
 *
 */

#include "msw/graphic2d.h"

MSWGraphic2D::MSWGraphic2D(HDC hdc_) : hdc(hdc_)
{
}

MSWGraphic2D::~MSWGraphic2D()
{
}

void MSWGraphic2D::clear_rect(float x, float y, float w, float h)
{
    // TODO:
}

void MSWGraphic2D::draw_line(float x0, float y0, float x1, float y1)
{
    MoveToEx(hdc, (int) x0, (int) y0, NULL);
    LineTo(hdc, (int) x1, (int) y1);
}
